<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<link rel="stylesheet" href="__PUBLIC__/Home/Css/common.css" />
	<script type="text/javascript">
		var asid={$Think.get.asid};
	</script>
	<script type="text/javascript" src='__PUBLIC__/Home/Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='__PUBLIC__/Home/Js/top-bar.js'></script>
	<link rel="stylesheet" href="__PUBLIC__/Home/Css/question.css" />
	<script type="text/javascript" src="__PUBLIC__/Home/Js/question.js"></script>
</head>
<body>
	<!-- top -->
	<include file='Common:header' />
	<!-- top 结束-->
	<include file='Common:mbx' />

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state <if condition="$askInfo['solve'] eq 0">wait</if>'></div>
					<div class='answer'>
						<p class='ans-title'>{$askInfo.content}
							<b class='point'>{$askInfo.gold}</b>
						</p>
					</div>
					<ul>
						<li><a href="">{$askInfo.username}</a></li>
						<li><i class='level lv{$level}' title='Level {$level}'></i></li>
						<li>{$askInfo.time|date='Y-m-d H:i:s',###}</li>
				
					</ul>
					<if condition="isset($_SESSION['username']) && isset($_SESSION['uid']) && $askInfo['uid'] neq $_SESSION['uid']">
					<div class='ianswer'>
						<form action="{:U('Show/answer')}" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='asid' value='{$Think.get.asid}'>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
					</if>
					<!-- 满意回答 -->
					<if condition="$adoptAnswer neq '' ">
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'>{$adoptAnswer.content}</p>
						<dl>
							<dt>
								<if condition="$adoptAnswer['face'] neq ''">
									<a href=""><img src="{$adoptAnswer.face}" width='48' height='48'/></a>
								<else />	
									<a href=""><img src="__PUBLIC__//Home/Images/noface.gif" width='48' height='48'/></a>
								</if>
							</dt>
							<dd>
								<a href="">{$adoptAnswer.username}</a>
							</dd>
							<dd><i class='level lv{$ulevel}'></i></dd>
							<dd>{$adoptBfb}%</dd>
						</dl>
					</div>
					</if>
					<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>{$ancount}</strong> 条回答</p>
					<ul>
						<volist name='answerList' id='vo'>
						<li>
							<div class='face'>
								<a href="">
										<img src="{$face}" width='48' height='48'/>
								</a>
								<a href="">{$vo.username}</a>
							</div>
							<div class='cons blue'>
								<p>{$vo.content}<span style='color:#888;font-size:12px'>&nbsp;&nbsp;({$vo.time|date='Y-m-d',###})</span></p>
							</div>
							<if condition="$askInfo['username'] eq $_SESSION['username'] && $askInfo['solve'] eq 0">
								<a href="{:U('adopt',array('anid'=>$vo['anid'],'asid'=>$vo['asid']))}" class='adopt-btn'>采纳</a>
							</if>
						</li>
						</volist>
					
					</ul>
					<div class='page'>
						{$page}
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						<volist name='solving' id='vo'>
						<tr>
							<td class='t1'><a href="{:U('Show/Index',array('cid'=>$vo['cid'],'asid'=>$vo['asid']))}">{$vo.content}</a></td>
							<td>{$vo.answer}&nbsp;回答</td>
							<td>{$vo.time|date='Y-m-d',###}</td>
						</tr>
						</volist>
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		<include file='Common:right' />
		<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<include file='Common:footer' />
<!--[if IE 6]>
    <script type="text/javascript" src="__PUBLIC__/Home/Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->